import axios from '@/libs/api.request'

export const getActivity = ({
  page,
  size
}) => {
  const data = {
    page,
    size
  }
  return axios.request({
    url: 'pactivity/get_all_activities',
    params: data,
    method: 'get'
  })
}

export const activityAudit = ({
  id
}) => {
  const data = {
    id
  }
  return axios.request({
    url: 'pactivity/audit',
    params: data,
    method: 'get'
  })
}

export const getApplyActivityById = ({
  id,
  page,
  size
}) => {
  const data = {
    id,
    page,
    size
  }
  return axios.request({
    url: 'pactivity/get_apply_activityid',
    params: data,
    method: 'get'
  })
}
